//
//  ZPZNetRequest+ChooseByYourselfModeList.m
//  项目2网络封装
//
//  Created by rimi on 16/7/22.
//  Copyright © 2016年 周伦. All rights reserved.
//

#import "ZPZNetRequest+ChooseByYourselfModeList.h"
#import "LStringUtils.h"

@implementation ZPZNetRequest (ChooseByYourselfModeList)

+(void)getByYourselfPageSize:(NSString *)pageSize PageNum:(NSString *)pageNum typeId:(NSString *)typeId userId:(NSString *)userId comletion:(ZLReqComletion)comletion{
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:pageSize]) {
        [numDic setObject:pageSize forKey:@"pageSize"];
    }
    if (![LStringUtils isTextEmpty:pageNum]) {
        [numDic setObject:pageNum forKey:@"pageNum"];
    }
    if (![LStringUtils isTextEmpty:typeId]) {
        [numDic setObject:typeId forKey:@"typeId"];
    }
    if (![LStringUtils isTextEmpty:userId]) {
        [numDic setObject:userId forKey:@"userId"];
    }
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appAbroad/getChooseByYourselfModeList" requestType:ZLApRequestPost Comletion:comletion];
}

+(void)getByYourselfId:(NSString *)typeId id:(NSString *)Id comletion:(ZLReqComletion)comletion{
    
    NSMutableDictionary *numDic = [[NSMutableDictionary alloc]init];
    if (![LStringUtils isTextEmpty:typeId]) {
        [numDic setObject:typeId forKey:@"typeId"];
    }
    if (![LStringUtils isTextEmpty:Id]) {
        [numDic setObject:Id forKey:@"id"];
    }
    
    
    NSDictionary *resultDic = [NSDictionary dictionaryWithDictionary:[self getParametersPaeames:numDic]];
    [self sendRequestByParameters:resultDic Method:@"appAbroad/getChooseByYourselfDetail" requestType:ZLApRequestPost Comletion:comletion];
}

@end
